#define RW PORTD_Bit2
#define SW_PRM PORTB_Bit2
#define SW_PRD PORTC_Bit3

#define CLK_SNT PORTB_Bit1
#define DATA_SNT PORTB_Bit0
#define LE_SNT PORTD_Bit6

#define CLK_ATT CLK_SNT
#define DATA_ATT DATA_SNT
#define LE_ATT_PRM PORTD_Bit7
#define LE_ATT_PRD PORTC_Bit5



#define QUARZ_FREQ  10000000     /* 10 Mhz */
#define UART_SPEED 9600

#define NET_ADDRESS_PRM     170
#define NET_ADDRESS_PRD     171

#define MAX_N_LO            35